<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>建设单位待办--建设遴选--机构详情</title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta http-equiv="Expires" content="0">
    <meta http-equiv="Cache-Control" content="no-siteapp,no-transform,no-store, no-cache, must-revalidate">
    <meta http-equiv="Pragma" content="no-cache">
    <link rel="stylesheet" href="/static/css/font.css">
    <link rel="stylesheet" href="/static/css/weadmin.css">
    <link rel="stylesheet" href="/static/css/buildUnit/common.css">
    <script type="text/javascript" src="/lib/layui/layui.js" charset="utf-8"></script>
    <!--<script type="text/javascript" src="/templates/act/process-xl.js"></script>-->
    <style>
        body {
            -webkit-box-sizing: border-box;
            -moz-box-sizing: border-box;
            box-sizing: border-box;
            padding: 0px 20px;
        }
    </style>
</head>
<body>
<table class="layui-table v-table">
    <colgroup>
        <col width="24%">
        <col width="13%">
        <col width="13%">
        <col width="24%">
        <col width="13%">
        <col width="13%">
    </colgroup>
    <tbody>
    <tr>
        <td class="th8">机构名称</td>
        <td colspan="6" class="orgName"></td>
        <!--<td class="th8">资质类型</td>
        <td colspan="2" class="aptitudeType"></td>-->
    </tr>
    <tr>
        <td class="th8">证书编号</td>
        <td colspan="2" class="aptitudeNo"></td>
        <td class="th8">证书有效期</td>
        <td colspan="2" class="date"></td>
    </tr>
    <tr>
        <td class="th8">发证机关</td>
        <td colspan="2" class="authority"></td>
        <td class="th8">发证日期</td>
        <td colspan="2" class="grantTime"></td>
    </tr>
    <tr>
        <td class="th8">联系人</td>
        <td colspan="2" class="realName"></td>
        <td class="th8">联系电话</td>
        <td colspan="2" class="contact"></td>
    </tr>
    </tbody>
</table>
<p style="font-weight: bold;font-size: 16px; margin-bottom: 10px">资质项</p>
<form class="layui-form" action="">
    <table class="layui-hide" id="dataList" lay-filter="dataList"></table>
</form>

<script src="/static/js/main.js"></script>
<script type="text/javascript">
    layui.use(['configureCom', 'configure', 'bluebird', 'baseTab', 'sessionFun', 'jquery', 'process', 'matchDict'], function () {
        var configure = layui.configure;
        var configureCom = layui.configureCom;
        var sessionFun = layui.sessionFun;
        var matchDict = layui.matchDict;
        var $ = layui.jquery;
        var listData = sessionFun.get(configure.SESSION_PROJECT_WAIT_LIST_DATA);
        var details = sessionFun.get(configure.SESSION_INSTITUTIONAL_DETAILS_DATA);//建设机构详情
        var detailsData = details.orgAptitudeList;
        var tdHtml = '';
        $.each(details, function (index, value) {
            $('.' + index).html(value);
            $.each(detailsData[0], function (indexTd, valueTd) {
                $('.' + indexTd).html(valueTd);
                $('.date').html(detailsData[0].expiryStartTime+'至'+detailsData[0].expiryEndTime);
            })
        });
        var cols = [[
            {type: 'numbers', title: '序号'},
            {
                field: 'aptitudeStatus', title: '当前状态', templet: function (d) {
                    return '<p>' + matchDict.name(d.aptitudeStatus, configure.APTITUDE_STATUS) + '</p>'

                }
            },
            {field: 'aptitudeName', title: '资质项名称'},
            {field: 'createTime', title: '就位日期'}
        ]];
        configureCom.postDataAjax(configure.ORG_APTITUDE_LIST_BY_OGR_NO_HTTP, {
            orgNo:details.orgNo
        }).then(function (res) {
            var data = res.list[0].aptitudeExtList;
            configureCom.tableRenderUserDefined({}, cols, data, 'dataList');
        });
        /*var cols = [[
            {type: 'numbers', title: '序号'},
            {
                field: 'aptitudeStatus', title: '当前状态', templet: function (d) {
                    return '<p>' + matchDict.name(d.aptitudeStatus, configure.APTITUDE_STATUS) + '</p>'

                }
            },
            {field: 'aptitudeName', title: '资质项名称'},
            {field: 'positionDate', title: '就位日期'}
        ]];
        configureCom.tableRender(configure.ORG_APTITUDE_LIST_BY_OGR_NO_HTTP, {orgNo:details.orgNo}, cols, 'dataList', 10, '');*/
    })

</script>
</body>
</html>